﻿@{
    ViewBag.Title = "Details"; 
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    layui.use(['jquery', 'form', 'laydate', 'tablePlug', 'common'], function () {
        var form = layui.form,
            $ = layui.$,
            common = layui.common,
            laydate = layui.laydate;
        var keyValue = $.request("keyValue");
        //权限字段
        common.authorizeFields('adminform');
        //此处需修改
        //类型为时间时
        //laydate.render({
            //elem: '#F_Birthday'
            //, btns: ['clear', 'now']
            //, trigger: 'click',
            //format: 'yyyy-MM-dd',
        //});

        $(function () {
            initControl();
            common.ajax({
                url: '/FixedAssets/Assetsinstocks/GetFormJson',
                dataType: 'json',
                data: { keyValue: keyValue },
                async: false,
                success: function (data) {
                    common.val('adminform', data);
                    common.setReadOnly('adminform');
                    form.render();
                 }
            });
       });

       function initControl() {
           //此处需修改
           //绑定数据源
           //类型为下拉框时
       }
   });
</script>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div class="layui-form layuimini-form" lay-filter="adminform">
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">单据号</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_BillNo" name="F_BillNo" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">经办单位</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_UnitName" name="F_UnitName" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">经办人员</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_OperatorName" name="F_OperatorName" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">依据</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_CreditNo" name="F_CreditNo" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">单据创建时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_BillCreateTime" name="F_BillCreateTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">单据最后修改时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_BillLastEditedTime" name="F_BillLastEditedTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">单据完成时间</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_BillCompleteTime" name="F_BillCompleteTime" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">状态</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Status" name="F_Status" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">条目数</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Item" name="F_Item" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">总金额</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Amount" name="F_Amount" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">备注</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Note" name="F_Note" lay-verify="required" class="layui-input">
                   </div>
               </div>
            </div>
        </div>
    </div>
</body>

